
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 流量卡分配状态
 * </p>
 *
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum FlowCardInventoryStatusEnum {

    ALLOCATED("0", "已分配"),
    UNALLOCATED("1", "未分配");
    private final String value;
    private final String description;

    public static FlowCardInventoryStatusEnum find(String val) {
        for (FlowCardInventoryStatusEnum dataScopeEnum : FlowCardInventoryStatusEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
